Skip to content

Commit 4e57359

Browse files
committed
Rename LineageTreeUtils to GraphUtils
1 parent 16f2a26 commit 4e57359

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/java/org/mastodon/mamut/tomancak/lineage_registration/BranchGraphUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static < V extends Vertex< E >, E extends Edge< V > > boolean doesBranchD
137137
}
138138

139139
/**
140-
* Returns the first vertex of the specified branch with {@code vertex.getTimepoint() > timepoint.}
140+
* Returns the first vertex of the specified branch with {@code vertex.getTimepoint() >= timepoint.}
141141
*
142142
* @param branchStart The first vertex of the branch.
143143
* @param timepoint The time point.

src/main/java/org/mastodon/mamut/tomancak/lineage_registration/LineageTreeUtils.java renamed to src/main/java/org/mastodon/mamut/tomancak/lineage_registration/GraphUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.mastodon.graph.Vertex;
99
import org.mastodon.spatial.HasTimepoint;
1010

11-
public class LineageTreeUtils
11+
public class GraphUtils
1212
{
1313
/**
1414
* @return the set of root nodes of the given graph.

src/main/java/org/mastodon/mamut/tomancak/lineage_registration/RootsPairing.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static RefRefMap< Spot, Spot > pairDividingRoots( ModelGraph graphA, int timepoi
4444

4545
private static RefSet< Spot > getRoots( ModelGraph graph, int timepoint )
4646
{
47-
return getBranchStarts( filterDividingSpots( LineageTreeUtils.getRoots( graph, timepoint ) ) );
47+
return getBranchStarts( filterDividingSpots( GraphUtils.getRoots( graph, timepoint ) ) );
4848
}
4949

5050
private static RefRefMap< Spot, Spot > pairSpotsBasedOnLabel( RefSet< Spot > spotsA, RefSet< Spot > spotsB )
@@ -71,6 +71,10 @@ private static RefSet< Spot > filterDividingSpots( RefSet< Spot > spots )
7171
}
7272
}
7373

74+
/**
75+
* Returns the set that contains the first vertices of all branches, that
76+
* contain a vertex in the given set ({@code spots}).
77+
*/
7478
private static RefSet< Spot > getBranchStarts( RefSet< Spot > spots )
7579
{
7680
Spot ref = spots.createRef();

0 commit comments

Comments
 (0)