Search this API

y.base
Interface GraphInterface

All Known Implementing Classes:
CopiedLayoutGraph, DefaultLayoutGraph, Graph, Graph2D, LayoutGraph

public interface GraphInterface

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

 

Method Summary
 java.util.Iterator edgeObjects()
          Returns an iterator that provides access to all edges residing in the graph.
 DataProvider getDataProvider(java.lang.Object dataKey)
          Returns the data provider that is registered with the graph using the given look-up key.
 java.lang.Object[] getDataProviderKeys()
          Returns an array of all data provider look-up keys that are registered with the graph.
 java.lang.Object getSource(java.lang.Object edgeObject)
          Returns the source node associated with the given edge.
 java.lang.Object getTarget(java.lang.Object edgeObject)
          Returns the target node associated with the given edge.
 java.util.Iterator nodeObjects()
          Returns an iterator that provides access to all nodes residing in the graph.
 

Method Detail

nodeObjects

java.util.Iterator nodeObjects()
Returns an iterator that provides access to all nodes residing in the graph.


edgeObjects

java.util.Iterator edgeObjects()
Returns an iterator that provides access to all edges residing in the graph.


getSource

java.lang.Object getSource(java.lang.Object edgeObject)
Returns the source node associated with the given edge.


getTarget

java.lang.Object getTarget(java.lang.Object edgeObject)
Returns the target node associated with the given edge.


getDataProvider

DataProvider getDataProvider(java.lang.Object dataKey)
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.


getDataProviderKeys

java.lang.Object[] getDataProviderKeys()
Returns an array of all data provider look-up keys that are registered with the graph.


© Copyright 2000-2018,
yWorks GmbH.
All rights reserved.