Package com.powsybl.openloadflow.graph
Class NaiveGraphConnectivity<V,E>
- java.lang.Object
-
- com.powsybl.openloadflow.graph.AbstractGraphConnectivity<V,E>
-
- com.powsybl.openloadflow.graph.NaiveGraphConnectivity<V,E>
-
- All Implemented Interfaces:
GraphConnectivity<V,E>
public class NaiveGraphConnectivity<V,E> extends AbstractGraphConnectivity<V,E>
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
-
Fields inherited from class com.powsybl.openloadflow.graph.AbstractGraphConnectivity
componentSets
-
-
Constructor Summary
Constructors Constructor Description NaiveGraphConnectivity(ToIntFunction<V> numGetter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getQuickComponentNumber(V vertex)
protected void
resetConnectivity(Deque<GraphModification<V,E>> m)
protected void
updateComponents()
protected void
updateConnectivity(EdgeAdd<V,E> edgeAdd)
protected void
updateConnectivity(EdgeRemove<V,E> edgeRemove)
protected void
updateConnectivity(VertexAdd<V,E> vertexAdd)
-
Methods inherited from class com.powsybl.openloadflow.graph.AbstractGraphConnectivity
addEdge, addVertex, checkSaved, checkVertex, getComponentNumber, getConnectedComponent, getEdgesAddedToMainComponent, getEdgesRemovedFromMainComponent, getGraph, getModificationsContexts, getNbConnectedComponents, getNonConnectedVertices, getSmallComponents, getVerticesAddedToMainComponent, getVerticesRemovedFromMainComponent, removeEdge, setMainComponentVertex, startTemporaryChanges, undoTemporaryChanges
-
-
-
-
Constructor Detail
-
NaiveGraphConnectivity
public NaiveGraphConnectivity(ToIntFunction<V> numGetter)
-
-
Method Detail
-
updateComponents
protected void updateComponents()
- Specified by:
updateComponents
in classAbstractGraphConnectivity<V,E>
-
resetConnectivity
protected void resetConnectivity(Deque<GraphModification<V,E>> m)
- Specified by:
resetConnectivity
in classAbstractGraphConnectivity<V,E>
-
getQuickComponentNumber
protected int getQuickComponentNumber(V vertex)
- Specified by:
getQuickComponentNumber
in classAbstractGraphConnectivity<V,E>
-
updateConnectivity
protected void updateConnectivity(EdgeRemove<V,E> edgeRemove)
- Specified by:
updateConnectivity
in classAbstractGraphConnectivity<V,E>
-
updateConnectivity
protected void updateConnectivity(EdgeAdd<V,E> edgeAdd)
- Specified by:
updateConnectivity
in classAbstractGraphConnectivity<V,E>
-
updateConnectivity
protected void updateConnectivity(VertexAdd<V,E> vertexAdd)
- Specified by:
updateConnectivity
in classAbstractGraphConnectivity<V,E>
-
-