question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visualization of Network

See original GitHub issue

Hi, is there somewhere code for visualizing the network structure of say es.nodes ?

Maybe inside some apps, somewhere?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
simnhcommented, Dec 15, 2016

g

1reaction
simnhcommented, Dec 15, 2016

Graphviz seems to work better…for simple ones thats the code

    import graphviz as gv
    import oemof.network as ntwk
    G = gv.Digraph(format='png')
    for n in es.nodes:
        if isinstance(n, ntwk.Component):
            color='black'
            shape = 'box'
        else:
            color = 'blue'
            shape = None
        if 'heat' in n.label:
            color = 'red'
        if 'GL' in n.label:
            color='brown'
        G.node(n.label, color=color, shape=shape)
    for s,t in om.flows:
        G.edge(s.label, t.label)
    G.render('G')


Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Visualization - Network Visualization
Network visualization involves the visualization of the relationships (edges or links) between data elements (nodes). Network Visualization ...
Read more >
Network Visualization: Examples & Topology Mapping | Auvik
Network visualization is the practice of creating and displaying graphical representations of network devices, network metrics, ...
Read more >
Network Visualisation | Data Viz Project
Network Visualisation (also called Network Graph) is often used to visualise complex relationships between a huge amount of elements.
Read more >
Network visualization: what it is and how to draw one
Network visualization is a concept used to get the picture of complex relationships between some elements — in most cases, a large number...
Read more >
Network visualization in a dashboard - IBM
Network visualizations display a set of nodes, represented by symbols, and links, represented by paths, to show the relationship between entities or items....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found