示例#1
0
        public static DotSubGraph TypeCluster <T>(
            TypedNode <T> typedNode,
            params IDotElement[] elements)
        {
            var typeCluster = new DotSubGraph(typedNode.Id);

            typeCluster.Elements.AddRange(elements);
            return(typeCluster);
        }
示例#2
0
 public static TypedNode <T> WithEdge <T>(this TypedNode <T> node, string fromId, string toId)
 {
     node.Add(
         new Edge(
             node,
             CreateId(typeof(T), fromId),
             CreateId(typeof(T), toId)));
     return(node);
 }
示例#3
0
        public static TypedNode <T> TypeNode <T>(params string[] methodNames)
        {
            var node = TypedNode.Create <T>();

            node.Add(MemberNode <T>(".ctor"));
            foreach (var methodName in methodNames)
            {
                node.Add(MemberNode <T>(methodName));
            }

            return(node);
        }