Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public abstract void WriteVertexAttributes(GraphFileFormat format, object v);
Exemplo n.º 4
0
 public abstract void WriteEdgeAttributes(GraphFileFormat format, Edge e);
Exemplo n.º 5
0
 public abstract void WriteGraphMLVertex(GraphFileFormat format, object v);
Exemplo n.º 6
0
 public abstract void WriteGraphMLEdge(GraphFileFormat format, Edge e);
Exemplo n.º 7
0
 public override void WriteVertexAttributes(GraphFileFormat format, object v)
 {
     WriteGraphMLVertex(format, v);
 }
Exemplo n.º 8
0
 public override void WriteEdgeAttributes(GraphFileFormat format, Edge e)
 {
     WriteGraphMLEdge(format, e);
 }