Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gs-algo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graphstream
gs-algo
Commits
44d30c3e
Commit
44d30c3e
authored
13 years ago
by
Yoann Pigné
Browse files
Options
Downloads
Patches
Plain Diff
Changed visibility of method getConnectedComponents(int,int) from protected to public
parent
90c7e30d
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/graphstream/algorithm/ConnectedComponents.java
+4
-3
4 additions, 3 deletions
src/org/graphstream/algorithm/ConnectedComponents.java
with
4 additions
and
3 deletions
src/org/graphstream/algorithm/ConnectedComponents.java
+
4
−
3
View file @
44d30c3e
...
@@ -186,7 +186,7 @@ public class ConnectedComponents extends SinkAdapter implements
...
@@ -186,7 +186,7 @@ public class ConnectedComponents extends SinkAdapter implements
if
(
graph
!=
null
)
if
(
graph
!=
null
)
init
(
graph
);
init
(
graph
);
connectedComponentsMap
=
new
HashMap
<
Node
,
Integer
>();
}
}
/**
/**
...
@@ -208,7 +208,6 @@ public class ConnectedComponents extends SinkAdapter implements
...
@@ -208,7 +208,6 @@ public class ConnectedComponents extends SinkAdapter implements
maxIndex
=
c
;
maxIndex
=
c
;
}
}
}
}
// Get the list of nodes within this component
// Get the list of nodes within this component
if
(
maxIndex
!=
-
1
)
{
if
(
maxIndex
!=
-
1
)
{
ArrayList
<
Node
>
giant
=
new
ArrayList
<
Node
>();
ArrayList
<
Node
>
giant
=
new
ArrayList
<
Node
>();
...
@@ -253,7 +252,7 @@ public class ConnectedComponents extends SinkAdapter implements
...
@@ -253,7 +252,7 @@ public class ConnectedComponents extends SinkAdapter implements
* Maximum size for the connected component to be considered (use
* Maximum size for the connected component to be considered (use
* 0 or lower values to ignore the ceiling)
* 0 or lower values to ignore the ceiling)
*/
*/
p
rotected
int
getConnectedComponentsCount
(
int
sizeThreshold
,
int
sizeCeiling
)
{
p
ublic
int
getConnectedComponentsCount
(
int
sizeThreshold
,
int
sizeCeiling
)
{
if
(!
started
)
{
if
(!
started
)
{
compute
();
compute
();
}
}
...
@@ -392,6 +391,8 @@ public class ConnectedComponents extends SinkAdapter implements
...
@@ -392,6 +391,8 @@ public class ConnectedComponents extends SinkAdapter implements
ids
.
add
(
""
);
// The dummy first identifier (since zero is a special
ids
.
add
(
""
);
// The dummy first identifier (since zero is a special
// value).
// value).
connectedComponentsMap
=
new
HashMap
<
Node
,
Integer
>();
// Initialize the size count structure
// Initialize the size count structure
connectedComponentsSize
=
new
HashMap
<
Integer
,
Integer
>();
connectedComponentsSize
=
new
HashMap
<
Integer
,
Integer
>();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment