Class NetworkLink

java.lang.Object
  extended by NetworkLink

public class NetworkLink
extends java.lang.Object

Class NetworkLink Description : this class set nodes links of a network in special topology


Constructor Summary
NetworkLink()
           
 
Method Summary
static void complete(Network n)
          Set the nodes of a network n as a complete graph
static void random(Network n, double p)
          Set the nodes of a network n into random positions
static void ringDirected(Network n)
          Set the nodes of a network n into a directed ring
static void ringUndirected(Network n)
          Set the nodes of a network n into an undirected ring
static void star(Network n)
          Set the nodes of a network n as a star
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkLink

public NetworkLink()
Method Detail

ringDirected

public static void ringDirected(Network n)
Set the nodes of a network n into a directed ring


ringUndirected

public static void ringUndirected(Network n)
Set the nodes of a network n into an undirected ring


complete

public static void complete(Network n)
Set the nodes of a network n as a complete graph


star

public static void star(Network n)
Set the nodes of a network n as a star


random

public static void random(Network n,
                          double p)
Set the nodes of a network n into random positions

Parameters:
n - which you want to add links
p - it's the probability to have a link between two nodes