-
Notifications
You must be signed in to change notification settings - Fork 0
binokkio/graphtxt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a pathfinder codebase written specifically to render plain text visualizations of flows in Gingester. Example code: new GraphTxt(List.of( SimpleNode.of("AAAAA", "BBBB", "C", "F"), SimpleNode.of("BBBB", "F"), SimpleNode.of("C"), SimpleNode.of("D", "BBBB", "E", "ZZZ", "H"), SimpleNode.of("E"), SimpleNode.of("F"), SimpleNode.of("ZZZ"), SimpleNode.of("H", "IIII"), SimpleNode.of("IIII") )).getText() Will produce: ┌───────┐ ┌───┐ │ AAAAA │ │ D │ └───┬───┘ └─┬─┘ ┌───┬───┴───┐ │ │ │ ├──────┬──┴───┬──────┐ │ ┌─┴─┐ ┌───┴──┐ ┌─┴─┐ ┌──┴──┐ ┌─┴─┐ │ │ C │ │ BBBB │ │ E │ │ ZZZ │ │ H │ │ └───┘ └───┬──┘ └───┘ └─────┘ └─┬─┘ │ │ ┌┘ └───────────┤ │ ┌─┴─┐ ┌───┴──┐ │ F │ │ IIII │ └───┘ └──────┘ The layout algorithm keeps the nodes within the horizontal space used by the widest row.
About
Basic plain text visualization of directed graphs.