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.
我正在尝试用实现一个集合来实现一个图。喜欢,
Graph is a Set of Vertices, Set of Edges
但无法得到确切的实现
有人概述了这个想法..
public class Graph { private Set<Vertex> nodes; private Set<Edge> edges; }
如果您想查看图形检查jung 库的更“严肃”的实现。
你可以在这里找到基础教程