Skip to content

Commit

Permalink
advanced some test
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Apr 14, 2019
1 parent 0a00142 commit 2a35864
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sandbox/test_posting.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
from netwulf.tools import bind_positions_to_network
import networkx as nx

if __name__ == "__main__":
import pprint
pp = pprint.PrettyPrinter(indent=4)

G = nx.Graph()
G.add_nodes_from(range(10))
G.add_nodes_from("abcde")
G.add_edges_from([("a","b")])

from netwulf import visualize
props, config = visualize(G)

pp.pprint(props)
pp.pprint(config)
bind_positions_to_network(G, props)
visualize(G, config=config)

0 comments on commit 2a35864

Please sign in to comment.