Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gs-algo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
graphstream
gs-algo
Commits
1240daac
Commit
1240daac
authored
Feb 27, 2012
by
gsavin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change edge-vertex-connectivity computation to use EdmondsKarp algorithm.
parent
a9eddb21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/org/graphstream/algorithm/measure/ConnectivityMeasure.java
...rg/graphstream/algorithm/measure/ConnectivityMeasure.java
+2
-2
No files found.
src/org/graphstream/algorithm/measure/ConnectivityMeasure.java
View file @
1240daac
...
...
@@ -38,7 +38,7 @@ import java.util.LinkedList;
import
org.graphstream.algorithm.Algorithm
;
import
org.graphstream.algorithm.DynamicAlgorithm
;
import
org.graphstream.algorithm.flow.
FordFulkerson
Algorithm
;
import
org.graphstream.algorithm.flow.
EdmondsKarp
Algorithm
;
import
org.graphstream.graph.Edge
;
import
org.graphstream.graph.Graph
;
import
org.graphstream.graph.Node
;
...
...
@@ -115,7 +115,7 @@ public class ConnectivityMeasure {
*/
public
static
int
getEdgeConnectivity
(
Graph
g
)
{
int
k
=
Integer
.
MAX_VALUE
;
FordFulkersonAlgorithm
flow
=
new
FordFulkerson
Algorithm
();
EdmondsKarpAlgorithm
flow
=
new
EdmondsKarp
Algorithm
();
for
(
int
u
=
0
;
u
<
g
.
getNodeCount
()
-
1
;
u
++)
{
for
(
int
v
=
u
+
1
;
v
<
g
.
getNodeCount
();
v
++)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment