1

我是荣格图的新手。我已经用我的自定义 Vertex 类实现了有向图。现在,我想将所有信息存储在文件中。我试过 GraphMLWriter,但问题是图顶点是从 Vertex 类继承的类。是否可以使用 GraphMLWriter 存储所有这些顶点细节?

public class Vertex{
   String name;
}

public class IfVertex extends Vertex{
   String condition;
}

public class CopyVertex extends Vertex{
   ArrayList<Copy> copyVars ;
}

谢谢。

4

0 回答 0