Class Graph
- java.lang.Object
-
- org.corpus_tools.graphannis.model.Graph
-
public class Graph extends Object
-
-
Constructor Summary
Constructors Constructor Description Graph(CAPI.AnnisGraph g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetNodeForID(int id)Iterable<Node>getNodesByType(String type)List<Edge>getOutgoingEdges(Node node)List<Edge>getOutgoingEdges(Node node, Component component)List<Edge>getOutgoingEdges(Node node, ComponentType componentType)
-
-
-
Constructor Detail
-
Graph
public Graph(CAPI.AnnisGraph g)
-
-
Method Detail
-
getNodesByType
public Iterable<Node> getNodesByType(String type) throws GraphANNISException
- Throws:
GraphANNISException
-
getOutgoingEdges
public List<Edge> getOutgoingEdges(Node node) throws GraphANNISException
- Throws:
GraphANNISException
-
getOutgoingEdges
public List<Edge> getOutgoingEdges(Node node, ComponentType componentType) throws GraphANNISException
- Throws:
GraphANNISException
-
getOutgoingEdges
public List<Edge> getOutgoingEdges(Node node, Component component) throws GraphANNISException
- Throws:
GraphANNISException
-
getNodeForID
public Node getNodeForID(int id) throws GraphANNISException
- Throws:
GraphANNISException
-
-