| Package | com.yworks.io.graphml.writer |
| Class | public class DefaultGraphElementProvider |
| Implements | IGraphElementProvider |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a graph element provider that provides access to the elements of the given graph instance.
| DefaultGraphElementProvider | ||
|
getEdgeCount():int
Returns the number of edges in the graph.
| DefaultGraphElementProvider | ||
|
Returns an iterator over all edges that are contained in the current graph object.
| DefaultGraphElementProvider | ||
|
getGraphObject():Object
Returns the graph object.
| DefaultGraphElementProvider | ||
|
getNodeCount():int
Returns the number of nodes in the graph.
| DefaultGraphElementProvider | ||
|
Returns an iterator over all nodes that are contained in the current graph object.
| DefaultGraphElementProvider | ||
|
getNodeSubgraph(node:Object):IGraphElementProvider
Returns the subgraph which might be defined under a node.
| DefaultGraphElementProvider | ||
|
getPortObjects(node:Object):Iterator
Returns an iterator over all ports that belong to the given node
| DefaultGraphElementProvider | ||
|
getSourceNode(edge:Object):Object
Returns the source node of the given edge.
| DefaultGraphElementProvider | ||
|
getSourcePort(edge:Object):Object
Returns the source port of the given edge
| DefaultGraphElementProvider | ||
|
getTargetNode(edge:Object):Object
Returns the target node of the given edge
| DefaultGraphElementProvider | ||
|
getTargetPort(edge:Object):Object
Returns the target port of the given edge
| DefaultGraphElementProvider | ||
|
isDefaultDirected():Boolean
Returns whether the default direction of edges in the graph is
directed.
| DefaultGraphElementProvider | ||
|
isDirected(edge:Object):Object
Returns
true if the given edge is directed
| DefaultGraphElementProvider | ||
| DefaultGraphElementProvider | () | constructor |
public function DefaultGraphElementProvider(graph:IGraph)Creates a graph element provider that provides access to the elements of the given graph instance.
Parametersgraph:IGraph — The graph to work on.
|
| 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.
Parametersnode: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
Parametersnode: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.
Parametersedge: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
Parametersedge: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
Parametersedge: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
Parametersedge: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
edge:Object — the edge.
|
Object — true if the given edge is directed
|