Method

How to implement graph visualization program?

Godot Engine Version 3.4.4

➡ Idea: compile Godot engine with modified KaHIP (CPP):

  • With KaHIP it’s possible to build Graph class that can be used directly in Godot Engine
  • ˆAccess to KaHIP graph structure and functions
  • Write time-consuming algorithms in CPP, use GDScript GDScript (Godot’s scripting language) for rest

Graph Structure

Graph is saved as folder containing:

  • Metis adjacency list file
  • Vertex coordinates file
  • Additional vertex set or partition list file

ˆ➡ Read in graph as Metis adjacency list → save in compiled
graph class

➡ Read in graph coordinates → change graph class vertex
coordinates

Graph Visualization in Godot Game Engine

  • Use node sprite for vertices
Node sprite
Arrow sprite