org.openanzo.jastor.util.graph
Class GraphMem
java.lang.Object
org.openanzo.jastor.util.graph.GraphPartBase
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphMem
public GraphMem(java.lang.String name)
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.