org.openanzo.jastor.util.graph
Class GraphMem

java.lang.Object
  extended by org.openanzo.jastor.util.graph.GraphPartBase
      extended by org.openanzo.jastor.util.graph.GraphMem
All Implemented Interfaces:
IGraph, IGraphPart

public class GraphMem
extends GraphPartBase
implements IGraph

Author:
Elias Torres ( eliast@us.ibm.com )

Constructor Summary
GraphMem(java.lang.String name)
           
 
Method Summary
 void addEdge(IEdge e)
           
 void addNode(INode n)
           
 boolean contains(IEdge e)
           
 boolean contains(INode n)
           
 java.util.List<IEdge> edges()
           
 IEdge getEdgeByName(java.lang.String name)
           
 int getEdgeCount()
           
 INode getNodeByName(java.lang.String name)
           
 int getNodeCount()
           
 boolean isEmpty()
           
 java.util.List<INode> nodes()
           
 void removeEdge(IEdge e)
           
 void removeNode(INode n)
           
 
Methods inherited from class org.openanzo.jastor.util.graph.GraphPartBase
getData, getName, setData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.util.graph.IGraphPart
getData, getName, setData
 

Constructor Detail

GraphMem

public GraphMem(java.lang.String name)
Method Detail

getNodeByName

public INode getNodeByName(java.lang.String name)
Specified by:
getNodeByName in interface IGraph

getEdgeByName

public IEdge getEdgeByName(java.lang.String name)
Specified by:
getEdgeByName in interface IGraph

addEdge

public void addEdge(IEdge e)
Specified by:
addEdge in interface IGraph

addNode

public void addNode(INode n)
Specified by:
addNode in interface IGraph

contains

public boolean contains(IEdge e)
Specified by:
contains in interface IGraph

contains

public boolean contains(INode n)
Specified by:
contains in interface IGraph

edges

public java.util.List<IEdge> edges()
Specified by:
edges in interface IGraph

nodes

public java.util.List<INode> nodes()
Specified by:
nodes in interface IGraph

getEdgeCount

public int getEdgeCount()
Specified by:
getEdgeCount in interface IGraph

getNodeCount

public int getNodeCount()
Specified by:
getNodeCount in interface IGraph

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface IGraph

removeEdge

public void removeEdge(IEdge e)
Specified by:
removeEdge in interface IGraph

removeNode

public void removeNode(INode n)
Specified by:
removeNode in interface IGraph


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.