예제 #1
0
 public static VirtualGraphView Create
     (VirtualGeoGraph graph
     , GeoboundingBox box
     , double distance)
 {
     return(new VirtualGraphView(graph)
     {
         distance = distance,
         viewArea = new VirtualGeoGraph(
             from item in graph.Nodes
             where box.Contains(item.Position) || ((item is Cluster) && box.intersectWithArea(item as Cluster))
             select item)
     });
 }