Skip to content

A simple network visualizer for pubsub message propagation

Notifications You must be signed in to change notification settings

vyzo/gerbil-netvis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gerbil NetVis

This is a simple network visualizer for pubsub message propagation using cairo; see gerbil-simsub for the network simulator driving the visualization.

Usage

(import :vyzo/simsub/scripts :vyzo/netvis)

;; capture random seed for reproducible graphs
(def seed (random-source-state-ref default-random-source))
(simple-floodsub-simulation messages: 1 fanout: 1  transcript: (save-transcript-to-file "/tmp/floodsub.out"))

(random-source-state-set! default-random-source seed)
(simple-gossipsub-simulation messages: 1 fanout: 1 transcript: (save-transcript-to-file "/tmp/gossipsub.out"))

(animate-floodsub! "/tmp/floodsub.out" 100)
(animate-gossipsub! "/tmp/gossipsub.out" 100)

License

MIT; © vyzo 2018

About

A simple network visualizer for pubsub message propagation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages