public class InducedSubgraph
extends java.lang.Object
Constructor and Description |
---|
InducedSubgraph(FastGraph g)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createInducedSubgraph(java.util.LinkedList<java.lang.Integer> nodes,
java.util.LinkedList<java.lang.Integer> edges,
int numOfNodes)
Will populated nodes and edges with the nodeIndex and edgeIndex of all the nodes and edges of this subgraph.
Will create a subgraph with the required number of nodes in. |
public InducedSubgraph(FastGraph g)
g
- The FastGraphpublic void createInducedSubgraph(java.util.LinkedList<java.lang.Integer> nodes, java.util.LinkedList<java.lang.Integer> edges, int numOfNodes) throws FastGraphException
nodes
- The list of nodes to populateedges
- The list of edges to populatenumOfNodes
- The number of nodes in the subgraphFastGraphException
- If there is an unspecified error - usually the number of nodes requested is too low