edxu96 / mgrid Goto Github PK
View Code? Open in Web Editor NEWmultilayer network for power grid with multiple voltage levels
Home Page: https://edxu96.github.io/mgrid
License: GNU General Public License v3.0
multilayer network for power grid with multiple voltage levels
Home Page: https://edxu96.github.io/mgrid
License: GNU General Public License v3.0
networkx.graph.subgraph(all_vertices_in_components)
To enhance #4.
Functions like edge_subgraph
will not work if the class is unable to initiate empty networkx
graph. The following TypeError
will occur:
TypeError: __init__() missing 1 required positional argument: 'g'
The final graph should be correct. But the correspondence between edges in the final graph and original edges has redundant values.
Current, a new attribute split_
is set True
. Instead, the attributed used in clustering associated edges can be set None
, indicating that the attribute of the new edge is not meaningful.
cluster
To enhance #4.
find_inter_nodes
planar_nodes
from_edgelist
When to specify which vertices should be split, it is not recommended to
use some vertex attribute. Multiple sets of vertices can be passed.
Different arguments can be used each time accordingly.
Only split
method is tested.
with_cuts
Integrate contraction
function in Graph
.
It is not necessary to assign every edge attribute in graph, because, for now, only one can be used in vertex splitting. Instead, a dictionary mapping new edges to the original after splitting can be used to update any dataframe associated with edges.
networkx.node_connected_component(g, vertex)
with_cuts
property. See #37: subgraph with new edges being cutThe graph returned by Graph.with_cuts
must preserve original directions.
There can another graph never adding new edge from vertex splitting. Then we know how number of components grows. However, it cannot help find cut-sets.(not necessary, should have a property)
Components can be seen in different layers, and cut-sets connect them.
g.edges(node)
will not give the in-edges of node
.pandas.DataFrame.update
to update edgelist
Graph.renamed_
is kept for now.Use numpy 1.18.0 instead.
test
when two labels are test_lv
and test_hv
.A dictionary for single to-be-split vertex. A data frame for multiple.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.