/adjacency-matrix-display

Primary LanguageCGNU General Public License v3.0GPL-3.0

Adjacency matrix

Interactive adjacency matrix

Setup

  • MacOS:

    • Homebrew (https://brew.sh)
    • make - (brew install make)
    • SDL2 - (brew install sdl2)
    • Make the program with make in the same directory as the Makefile
    • Run the program make run
  • MacOS: Troubleshooting

    • run make with make &> makeErrors.txt to get a log file and share/fix
  • Ubuntu:

    • Make sure SDL2 is installed
    • apt-get install libsdl2-dev
    • build by going to the sdl2-proj/. directory then run make
  • Fedora:

    • dnf install SDL2
    • dnf install SDL2-devel
    • make

Controls

  • click (the matrix top-left) to make a connection between nodes.
  • right-click to disconnect.
  • click a node (pink/red) to select:
    • click to move the node to that spot.
    • click another node to connect the two.
  • right-click to unselect the node.
  • Press space-bar to randomly place all nodes

Gallery

adj-mat