public abstract class UniversalGraph<N,E> extends Object
Constructor and Description |
---|
UniversalGraph() |
Modifier and Type | Method and Description |
---|---|
abstract Collection<E> |
findNodeEdges(N node,
boolean allowsOutputEdges,
boolean allowsInputEdges)
Returns edges that are attached to a specified node.
|
abstract Collection<E> |
getEdges()
Returns a collection of edges in the graph.
|
abstract N |
getEdgeSource(E edge)
Returns an edge source.
|
abstract N |
getEdgeTarget(E edge)
Returns an edge target.
|
abstract Collection<N> |
getNodes()
Returns a collection of nodes in the graph.
|
abstract ObjectScene |
getScene()
Returns a related scene as a ObjectScene.
|
public abstract ObjectScene getScene()
public abstract Collection<N> getNodes()
public abstract Collection<E> getEdges()
public abstract Collection<E> findNodeEdges(N node, boolean allowsOutputEdges, boolean allowsInputEdges)
node
- the nodeallowsOutputEdges
- if true then it finds all edges that has the node as their sourceallowsInputEdges
- if true then it finds all edges that has the node as their targetpublic abstract N getEdgeSource(E edge)
edge
- the edge