Guest User

Untitled

a guest
Oct 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. var g = new AdjacencyGraph<StorageVertex, Edge<StorageVertex>>();
  2.  
  3.             var adlSite = new SiteVertex("Adelaide Clinic");
  4.             g.AddVertex(adlSite);
  5.  
  6.             var modSite = new SiteVertex("Modbury Clinic");
  7.             g.AddVertex(modSite);
  8.  
  9.  
  10.             var elecService = new ServiceVertex("Electrical");
  11.             var mechService = new ServiceVertex("Mechanical");
  12.  
  13.             g.AddVertex(elecService);
  14.             g.AddVertex(mechService);
  15.  
  16.            
  17.             //Put elec and mech services underneath adelaide
  18.  
  19.             g.AddEdge(new Edge<StorageVertex>(adlSite,elecService);
  20.             g.AddEdge(new Edge<StorageVertex>(adlSite,mechService));
  21.  
  22.  
  23.  
  24.             var concreteAsset = new AssetVertex("Airconditioner model 1234");
Add Comment
Please, Sign In to add comment