using System.Collections.Generic;
public List<Relation> relations;
this.relations = new List<Relation>();
public Relation(int id, int fromPort, Node from, int toPort, Node to)
this.fromPort = fromPort;
public static void Main()
List<Node> nodes = new List<Node>();
List<Relation> relations = new List<Relation>();
var r1 = new Relation(1, 1, nA, 1, nB);
var r2 = new Relation(2, 2, nB, 1, nC);
var r3 = new Relation(3, 2, nC, 1, nD);
var r4 = new Relation(4, 2, nD, 1, nF);
var r5 = new Relation(5, 2, nD, 1, nE);
var r6 = new Relation(6, 2, nC, 1, nF);
Dictionary<int, List<Node>> networks = new Dictionary<int, List<Node>>();
Dictionary<int, List<Node>> redundantNetworks = new Dictionary<int, List<Node>>();
Console.WriteLine(nodes.Count.ToString()+" Nodes and "+relations.Count.ToString()+" Relations");