de.korelstar.math.graph
Class SymmetricEdgesMap

java.lang.Object
  extended by de.korelstar.math.graph.SymmetricEdgesMap

public class SymmetricEdgesMap
extends java.lang.Object

Mathematical relation of nodes, which is symmetric


Constructor Summary
SymmetricEdgesMap()
          Creates an empty relation
SymmetricEdgesMap(java.util.Collection directRelation)
          Creates a relation which contains some entries
 
Method Summary
 void addSymmetricEdge(Edge e)
          Adds a symmetric relation betwenn two nodes
 boolean isInRelation(Node a, Node b)
          Checks, if two Nodes are in relation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SymmetricEdgesMap

public SymmetricEdgesMap()
Creates an empty relation


SymmetricEdgesMap

public SymmetricEdgesMap(java.util.Collection directRelation)
Creates a relation which contains some entries

Parameters:
directRelation -
Method Detail

addSymmetricEdge

public void addSymmetricEdge(Edge e)
Adds a symmetric relation betwenn two nodes

Parameters:
e - Edge, which represents the relationship

isInRelation

public boolean isInRelation(Node a,
                            Node b)
Checks, if two Nodes are in relation

Parameters:
a - first Node
b - second Node