|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.transformation.DirectionTransformer
Constructor Summary | |
DirectionTransformer()
|
Method Summary | |
static DirectedGraph |
toDirected(Graph graph)
Transforms graph (which may be either undirected or mixed)
into a directed graph without
parallel edges. |
static UndirectedGraph |
toUndirected(Graph dGraph)
Transforms graph (which may be either directed or mixed)
into an undirected graph without
parallel edges. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirectionTransformer()
Method Detail |
public static UndirectedGraph toUndirected(Graph dGraph)
graph
(which may be either directed or mixed)
into an undirected graph without
parallel edges. (This is likely to be very useful for visualization
tasks). Creates exactly one undirected edge (a, b) iff a isNeighborOf b
dGraph
-
public static DirectedGraph toDirected(Graph graph)
graph
(which may be either undirected or mixed)
into a directed graph without
parallel edges. Creates exactly one directed edge (a, b) iff a
isPredecessorOf b (so an UndirectedEdge will actually produce two edges).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |