Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近想出了如何将 Jung 库添加到 eclipse 中,但现在我遇到了一个新问题。我正在使用 Jung 教程,但似乎无法运行第一个教程,因为 Eclipse IDE 说代码中的 .DIRECTED 无法解析或不是字段。我该如何解决?
编辑:是的,使用该软件包有效!但是,令我惊讶的是 Eclipse IDE 没有为我提供导入包的功能。这不寻常吗?
确保将所有必需的 JUNG2 库包含到您的 Eclipse 项目中。当您这样做时,Eclipse 会在您右键单击那些带黄色下划线的单词后给出一些建议。选择与 JUNG2 相关的一项以删除警告。
EgeType.DIRECTED必须从edu.uci.ics.jung.graph.util.EdgeType下面的包中导入jung-graph-impl-2.0.1.jar
EgeType.DIRECTED
edu.uci.ics.jung.graph.util.EdgeType
jung-graph-impl-2.0.1.jar