Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Gvisual/src/gvisual/GraphFileParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ public static ParseResult parse(String filePath, Predicate<String> visibleFilter
typeList.add(curEdge);
}

// Ensure edge endpoints are tracked in the vertex set
// (they may not appear in the "nodes" section)
if (vertices.add(parts[1])) g.addVertex(parts[1]);
if (vertices.add(parts[2])) g.addVertex(parts[2]);

// Only add to graph if this type is visible
if (visibleFilter.test(parts[0])) {
g.addEdge(curEdge, parts[1], parts[2]);
Expand Down
Loading