fcmodeler.jsomap
Class WeightedGraph

java.lang.Object
  |
  +--fcmodeler.jsomap.WeightedGraph
All Implemented Interfaces:
jsomap.data.Pattern

public class WeightedGraph
extends java.lang.Object
implements jsomap.data.Pattern

A graph whose nodes and edges are weighted. This graph is composed of two sets: a node set and an edge set. The node set is a set of objects, and the edge set is a set of relations between pairs of elements of the node set.

Version:
 
Author:
default

Constructor Summary
WeightedGraph()
          Creates a new empty WeightedGraph.
WeightedGraph(WeightedGraph graph)
          Creates a new WeightedGraph that is a copy of the specified graph.
WeightedGraph(WeightedSet nodes, WeightedSet edges)
          Creates a new WeightedGraph from copies of the specified node and edge sets.
 
Method Summary
 WeightedSet getEdges()
          Returns the edge set.
 WeightedSet getNodes()
          Returns the node set.
 java.lang.String toString()
          Returns the string representation of this graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeightedGraph

public WeightedGraph()
Creates a new empty WeightedGraph.

WeightedGraph

public WeightedGraph(WeightedGraph graph)
Creates a new WeightedGraph that is a copy of the specified graph.
Parameters:
graph - the graph to copy.

WeightedGraph

public WeightedGraph(WeightedSet nodes,
                     WeightedSet edges)
Creates a new WeightedGraph from copies of the specified node and edge sets.
Parameters:
nodes - the node set.
edges - the edge set.
Method Detail

getEdges

public WeightedSet getEdges()
Returns the edge set.
Returns:
the edge set.

getNodes

public WeightedSet getNodes()
Returns the node set.
Returns:
the node set.

toString

public java.lang.String toString()
Returns the string representation of this graph.
Overrides:
toString in class java.lang.Object
Returns:
the string representation of this graph.