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.
How do you convert (can we convert?) an Undirected graph into a Directed graph. I am using Jgrapht library
这很简单,只需将两个节点 A 和 B 之间的无向边替换为两条有向边即可。一个来自 A-> B,另一个来自 B -> A。