public abstract class UniversalGraph<N,E>
extends java.lang.Object
| Constructor | Description |
|---|---|
UniversalGraph() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.util.Collection<E> |
findNodeEdges(N node,
boolean allowsOutputEdges,
boolean allowsInputEdges) |
Returns edges that are attached to a specified node.
|
abstract java.util.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 java.util.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 java.util.Collection<N> getNodes()
public abstract java.util.Collection<E> getEdges()
public abstract java.util.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 edgeBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.