N
- Node content typeE
- Edge content type
Do use N insteand of Node and E instead of Edge by defining DGraph<N extends Comparable
public interface DGraph<N,E>
DGraph.
Modifier and Type | Method and Description |
---|---|
SortedSet<Edge<N,E>> |
getEdges()
Returns the set of edges of this component.
|
SortedSet<Node<N>> |
getNodes()
Returns the set of nodes of this component.
|
SortedSet<Edge<N,E>> |
getPredecessorEdges(Node<N> node)
Returns the set of edges predecessors of the specified node.
|
SortedSet<Node<N>> |
getPredecessorNodes(Node<N> node)
Returns the set of nodes predecessors of the specified node.
|
SortedSet<Node<N>> |
getSinks()
Returns the sinks of this component.
|
SortedSet<Edge<N,E>> |
getSuccessorEdges(Node<N> node)
Returns the set of edges successors of the specified node.
|
SortedSet<Node<N>> |
getSuccessorNodes(Node<N> node)
Returns the set of nodes successors of the specified node.
|
SortedSet<Node<N>> |
getWells()
Returns the wells of this component.
|
void |
save(String filename)
Save the description of this component in a file whose name is specified.
|
int |
sizeEdges()
Returns the number of edges of this component.
|
int |
sizeNodes()
Returns the number of nodes of this component.
|
String |
toString()
Returns a String representation of this component.
|
SortedSet<Node<N>> getNodes()
Returns the set of nodes of this component.
SortedSet<Edge<N,E>> getEdges()
Returns the set of edges of this component.
SortedSet<Edge<N,E>> getPredecessorEdges(Node<N> node)
Returns the set of edges predecessors of the specified node.
node
- the node to search forSortedSet<Edge<N,E>> getSuccessorEdges(Node<N> node)
Returns the set of edges successors of the specified node.
node
- the node to search forSortedSet<Node<N>> getPredecessorNodes(Node<N> node)
Returns the set of nodes predecessors of the specified node.
node
- the node to search forSortedSet<Node<N>> getSuccessorNodes(Node<N> node)
Returns the set of nodes successors of the specified node.
node
- the node to search forint sizeEdges()
Returns the number of edges of this component.
int sizeNodes()
Returns the number of nodes of this component.
void save(String filename) throws IOException
Save the description of this component in a file whose name is specified.
filename
- the name of the fileIOException
- When an IOException occursCopyright © 2010–2016 The Galactic Organization. All rights reserved.