| Package | com.yworks.io.graphml.writer |
| Interface | public interface IGraphElementProvider |
| Implementors | DefaultGraphElementProvider |
| Method | Defined By | ||
|---|---|---|---|
getEdgeCount():int
Returns the number of edges in the graph. | IGraphElementProvider | ||
Returns an iterator over all edges that are contained in the current graph object. | IGraphElementProvider | ||
getGraphObject():Object
Returns the graph object. | IGraphElementProvider | ||
getNodeCount():int
Returns the number of nodes in the graph. | IGraphElementProvider | ||
Returns an iterator over all nodes that are contained in the current graph object. | IGraphElementProvider | ||
getNodeSubgraph(node:Object):IGraphElementProvider
Returns the subgraph which might be defined under a node. | IGraphElementProvider | ||
getPortObjects(node:Object):Iterator
Returns an iterator over all ports that belong to the given node
| IGraphElementProvider | ||
getSourceNode(edge:Object):Object
Returns the source node of the given edge. | IGraphElementProvider | ||
getSourcePort(edge:Object):Object
Returns the source port of the given edge
| IGraphElementProvider | ||
getTargetNode(edge:Object):Object
Returns the target node of the given edge
| IGraphElementProvider | ||
getTargetPort(edge:Object):Object
Returns the target port of the given edge
| IGraphElementProvider | ||
isDefaultDirected():Boolean
Returns whether the default direction of edges in the graph is
directed. | IGraphElementProvider | ||
isDirected(edge:Object):Object
Returns true if the given edge is directed
| IGraphElementProvider | ||
| getEdgeCount | () | method |
public function getEdgeCount():intReturns the number of edges in the graph.
Returnsint — the number of edges in the graph.
|
| getEdgeObjects | () | method |
public function getEdgeObjects():IteratorReturns an iterator over all edges that are contained in the current graph object.
ReturnsIterator — An iterator over all edges that are contained in the current graph object
|
| getGraphObject | () | method |
public function getGraphObject():ObjectReturns the graph object.
ReturnsObject — the graph object.
|
| getNodeCount | () | method |
public function getNodeCount():intReturns the number of nodes in the graph.
Returnsint — The number of nodes in the graph.
|
| getNodeObjects | () | method |
public function getNodeObjects():IteratorReturns an iterator over all nodes that are contained in the current graph object.
ReturnsIterator — An iterator over all nodes that are contained in the current graph object
|
| getNodeSubgraph | () | method |
public function getNodeSubgraph(node:Object):IGraphElementProviderReturns the subgraph which might be defined under a node.
Parameters
node:Object — The node for which a subgraph is searched
|
IGraphElementProvider — The element provider of the subgraph defined under the node,
or null if no such subgraph exists.
|
| getPortObjects | () | method |
public function getPortObjects(node:Object):IteratorReturns an iterator over all ports that belong to the given node
Parameters
node:Object — the node.
|
Iterator — an iterator over all ports that belong to the given node
|
| getSourceNode | () | method |
public function getSourceNode(edge:Object):ObjectReturns the source node of the given edge.
Parameters
edge:Object — the edge.
|
Object — The source node of the given edge
|
| getSourcePort | () | method |
public function getSourcePort(edge:Object):ObjectReturns the source port of the given edge
Parameters
edge:Object — the edge.
|
Object — the source port of the given edge
|
| getTargetNode | () | method |
public function getTargetNode(edge:Object):ObjectReturns the target node of the given edge
Parameters
edge:Object — the edge.
|
Object — the target node of the given edge
|
| getTargetPort | () | method |
public function getTargetPort(edge:Object):ObjectReturns the target port of the given edge
Parameters
edge:Object — the edge.
|
Object — the target port of the given edge
|
| isDefaultDirected | () | method |
public function isDefaultDirected():BooleanReturns whether the default direction of edges in the graph is directed.
ReturnsBoolean — true iff edges are directed by default
|
| isDirected | () | method |
public function isDirected(edge:Object):Object
Returns true if the given edge is directed
Parameters
edge:Object — the edge.
|
Object — true if the given edge is directed
|