MatrixAI / Polykey

Polykey Core Library
https://polykey.com
GNU General Public License v3.0
31 stars 4 forks source link

Visualise NodeGraph and NodeConnections and ProxyConnections #367

Closed CMCDragonkai closed 1 year ago

CMCDragonkai commented 2 years ago

Specification

Visualising this information on the CLI can be useful for us to debug and simulate different scenarios of the network.

While most visualisation will go directly to our GUI, we could do something simple on the terminal. The first case would just be a list of nodes that get updated, or a stream of events.

A cool thing would be to paint an ASCII animation showing the nodes being created with force-directed graph. It would have to resize according to the size of the terminal size though.

Additional context

Tasks

  1. ...
  2. ...
  3. ...
CMCDragonkai commented 2 years ago

A full graph would only be possible if we knew what all the nodes are connected to. But a node only really knows its own local neighbourhood and adjacent connections. However through the querying system, it could ask its neighbours for more information, and end up "crawling" the system.

CMCDragonkai commented 1 year ago

This is part of PKE. So closing this.