Packagecom.yworks.yfiles.base
Interfacepublic interface GraphInterface
Implementors Graph, LayoutGraphAdapter

An interface that describes the structural information of a graph and the data that is associated with its nodes and edges.



Public Properties
 PropertyDefined By
  dataProviderKeys : Vector.<Object>
[read-only] Returns an array of all data provider look-up keys that are registered with the graph.
GraphInterface
Public Methods
 MethodDefined By
  
Returns an iterator that provides access to all edges residing in the graph.
GraphInterface
  
Returns the data provider that is registered with the graph using the given look-up key.
GraphInterface
  
getSource(edgeObject:Object):Object
Returns the source node associated with the given edge.
GraphInterface
  
getTarget(edgeObject:Object):Object
Returns the target node associated with the given edge.
GraphInterface
  
Returns an iterator that provides access to all nodes residing in the graph.
GraphInterface
Property Detail
dataProviderKeysproperty
dataProviderKeys:Vector.<Object>  [read-only]

Returns an array of all data provider look-up keys that are registered with the graph.


Implementation
    public function get dataProviderKeys():Vector.<Object>
Method Detail
edgeObjects()method
public function edgeObjects():Iterator

Returns an iterator that provides access to all edges residing in the graph.

Returns
Iterator
getDataProvider()method 
public function getDataProvider(dataKey:Object):DataProvider

Returns the data provider that is registered with the graph using the given look-up key. The look-up domain of a returned data provider normally consists of either the nodes of the graph, or its edges, or both.

Parameters

dataKey:Object

Returns
DataProvider
getSource()method 
public function getSource(edgeObject:Object):Object

Returns the source node associated with the given edge.

Parameters

edgeObject:Object

Returns
Object
getTarget()method 
public function getTarget(edgeObject:Object):Object

Returns the target node associated with the given edge.

Parameters

edgeObject:Object

Returns
Object
nodeObjects()method 
public function nodeObjects():Iterator

Returns an iterator that provides access to all nodes residing in the graph.

Returns
Iterator