uk.ac.ebi.intact.simpleGraph
Class Graph

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--uk.ac.ebi.intact.simpleGraph.BasicGraph
                    |
                    +--uk.ac.ebi.intact.simpleGraph.Graph
All Implemented Interfaces:
BasicGraphI, java.lang.Cloneable, GraphI, java.util.Map, java.io.Serializable
Direct Known Subclasses:
FusionableGraph, InteractionNetwork

public class Graph
extends BasicGraph
implements GraphI

A simple graph class for temporary processing, for example to prepare output for graph analysis packages.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
Graph()
           
 
Method Summary
 void addEdge(EdgeI anEdge)
           
 Node addNode(Interactor anInteractor)
           
 void addNode(NodeI aNode)
           
 void addVisited(BasicObject anElement)
          record that a Component has been visited during graph exploration.
 java.util.Collection getEdges()
           
 java.util.HashMap getNodes()
           
 boolean isVisited(BasicObject anElement)
          return true if a Component has been visited during graph exploration.
 java.lang.String toString()
           
 
Methods inherited from class uk.ac.ebi.intact.simpleGraph.BasicGraph
getId, getLabel, setId, setLabel
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.ebi.intact.simpleGraph.BasicGraphI
getId, getLabel, setId, setLabel
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

Graph

public Graph()
Method Detail

addNode

public void addNode(NodeI aNode)
Specified by:
addNode in interface GraphI

addNode

public Node addNode(Interactor anInteractor)
Specified by:
addNode in interface GraphI

addEdge

public void addEdge(EdgeI anEdge)
Specified by:
addEdge in interface GraphI

getNodes

public java.util.HashMap getNodes()
Specified by:
getNodes in interface GraphI

getEdges

public java.util.Collection getEdges()
Specified by:
getEdges in interface GraphI

addVisited

public void addVisited(BasicObject anElement)
record that a Component has been visited during graph exploration.

Specified by:
addVisited in interface GraphI

isVisited

public boolean isVisited(BasicObject anElement)
return true if a Component has been visited during graph exploration.

Specified by:
isVisited in interface GraphI

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk