This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Based on https://plot.ly/python/network-graphs/ | |
## Copyright plotly team, Tom Brown, Bryn Pickering 2017 | |
## Licensed under the Apache 2.0 Licence. | |
## Working demo: https://pypsa.org/examples/plotly_network.html | |
import plotly.offline as py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plotly.offline as py | |
from plotly.graph_objs import * | |
py.init_notebook_mode(connected=True) | |
%matplotlib inline | |
import networkx as nx | |
G=nx.random_geometric_graph(200,0.125) | |
pos=nx.get_node_attributes(G,'pos') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Copyright 2015-2017 Tom Brown (FIAS), Jonas Hoersch (FIAS), David | |
## Schlachtberger (FIAS) | |
## Licensed under the Apache 2.0 Licence. | |
""" | |
Tools for fast Pyomo linear problem building. | |
Essentially this library replaces Pyomo expressions with more strict | |
objects with a pre-defined affine structure. |