de.korelstar.math.graph
Class EdgesSet

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

public class EdgesSet
extends java.lang.Object


Constructor Summary
EdgesSet()
           
 
Method Summary
 void addEdge(Edge e)
          Adds an edge
 void addEdges(java.util.Collection c)
          Adds edges
 boolean containsEdge(Node source, Node target)
          Checks, if the graph contains a certain edge
 Edge getEdge(Node source, Node target)
          Get a specific edge
 java.util.Set getEdges()
           
 java.util.Set getEdgesWithFrom(Node source)
          Gets all edges with a specific source
 java.util.Set getEdgesWithTo(Node target)
          Gets all edges with a specific target
 void removeEdge(Edge e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgesSet

public EdgesSet()
Method Detail

getEdges

public java.util.Set getEdges()
Returns:
all edges

addEdge

public void addEdge(Edge e)
Adds an edge

Parameters:
e - New edge

addEdges

public void addEdges(java.util.Collection c)
Adds edges

Parameters:
c - Collection of edges

removeEdge

public void removeEdge(Edge e)

containsEdge

public boolean containsEdge(Node source,
                            Node target)
Checks, if the graph contains a certain edge

Parameters:
source - Source Node of the Edge
target - Target Node of the Edge

getEdge

public Edge getEdge(Node source,
                    Node target)
Get a specific edge

Parameters:
source - Source of the edge
target - Target of the edge
Returns:
Edge

getEdgesWithFrom

public java.util.Set getEdgesWithFrom(Node source)
Gets all edges with a specific source

Parameters:
source - Source of the edges
Returns:
Set of Edge

getEdgesWithTo

public java.util.Set getEdgesWithTo(Node target)
Gets all edges with a specific target

Parameters:
target - Target of the edges
Returns:
Set of Edge