|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
GEDigraph is an interface for representing directed graphs of nodes linked by zero or one edge. Each node must be a unique Object in the digraph. Edges are not objects at all, and are represented simply by being present or not.
By default, this digraph uses equals() as the method to determine identity.
Direct implementations of GEDigraph should have a single constructor that takes a GEDigraph as a parameter.
Field Summary | |
static GEDigraph |
EMPTY
|
Method Summary | |
boolean |
containsGEDigraph(GEDigraph digraph)
Returns true if digraph is a subgraph of this GEDigraph. |
GEDigraph |
intersectWithGEDigraph(GEDigraph digraph)
Returns a new digraph that is the intersection of this with digraph. |
boolean |
sameGEDigraphAs(GEDigraph digraph)
Returns true if digraph is the same as this; that is, if this.containsGEDigraph(digraph) and digraph.containsGEDigraph(this). |
GEDigraph |
unionGEDigraph(GEDigraph digraph)
Returns a new digraph that is the union of this with digraph. |
Methods inherited from interface net.walend.digraph.Digraph |
containsEdge, containsNode, containsNodes, countInboundEdges, countOutboundEdges, edgeCount, edgeNodeIterator, getFromNodes, getNodes, getToNodes, isEdgeFree, isEmpty, nodeCount, nodeIterator |
Methods inherited from interface net.walend.collection.HasState |
getPrincipleInterface, sameStateAs |
Field Detail |
public static final GEDigraph EMPTY
Method Detail |
public boolean containsGEDigraph(GEDigraph digraph)
public boolean sameGEDigraphAs(GEDigraph digraph)
public GEDigraph intersectWithGEDigraph(GEDigraph digraph)
public GEDigraph unionGEDigraph(GEDigraph digraph)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |