示例#1
0
        public override void WriteGraphMLEdge(GraphFileFormat format, Edge e)
        {
            string str = "";

            if (e.Extension != null)
            {
                str = e.Extension.ToString().Replace("&", "&amp;").Replace("<", "&lt;").Replace(">", "&gt;");
            }

            format.Writer.WriteLine("<data key=\"d1\"><y:PolyLineEdge><y:BendStyle smoothed=\"true\"/><y:LineStyle type=\"line\" color=\"#000000\"/><y:EdgeLabel modelName=\"six_pos\" fontFamily=\"Lucida Console\" fontSize=\"10\">{0}</y:EdgeLabel><y:Arrows target=\"standard\"/></y:PolyLineEdge></data>",
                                    str);
        }
示例#2
0
        public override void WriteGraphMLVertex(GraphFileFormat format, object v)
        {
            string str = "";

            if (v != null && v.ToString() != null)
            {
                str = v.ToString().Replace("&", "&amp;").Replace("<", "&lt;").Replace(">", "&gt;");
            }

            format.Writer.WriteLine("<data key=\"d0\"><y:ShapeNode><y:Geometry width=\"{1}\"/><y:NodeLabel modelPosition=\"tl\" fontFamily=\"Lucida Console\" fontSize=\"10\">{0}</y:NodeLabel></y:ShapeNode></data>",
                                    str,
                                    str.Length * 8);
        }
示例#3
0
 public abstract void WriteVertexAttributes(GraphFileFormat format, object v);
示例#4
0
 public abstract void WriteEdgeAttributes(GraphFileFormat format, Edge e);
示例#5
0
 public abstract void WriteGraphMLVertex(GraphFileFormat format, object v);
示例#6
0
 public abstract void WriteGraphMLEdge(GraphFileFormat format, Edge e);
示例#7
0
 public override void WriteVertexAttributes(GraphFileFormat format, object v)
 {
     WriteGraphMLVertex(format, v);
 }
示例#8
0
 public override void WriteEdgeAttributes(GraphFileFormat format, Edge e)
 {
     WriteGraphMLEdge(format, e);
 }