File tree 1 file changed +3
-4
lines changed
src/main/java/pathexpression
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 18
18
import com .google .common .collect .Table ;
19
19
import pathexpression .RegEx .EmptySet ;
20
20
21
+ import java .util .ArrayList ;
21
22
import java .util .HashMap ;
22
23
import java .util .LinkedList ;
23
24
import java .util .List ;
@@ -72,7 +73,7 @@ private List<IRegEx<V>> computeAllPathFrom(N a) {
72
73
eliminate ();
73
74
logger .debug ("Compute all path from {}" , a );
74
75
List <PathExpression <V >> extractPathSequence = extractPathSequence ();
75
- List <IRegEx <V >> regEx = new LinkedList <>();
76
+ List <IRegEx <V >> regEx = new ArrayList <>();
76
77
for (int i = 0 ; i < graph .getNodes ().size (); i ++) {
77
78
regEx .add (emptyRegEx );
78
79
}
@@ -104,10 +105,8 @@ private List<IRegEx<V>> computeAllPathFrom(N a) {
104
105
}
105
106
106
107
private List <PathExpression <V >> extractPathSequence () {
107
-
108
-
109
108
int n = graph .getNodes ().size ();
110
- List <PathExpression <V >> list = new LinkedList <PathExpression <V >>();
109
+ List <PathExpression <V >> list = new ArrayList <PathExpression <V >>();
111
110
for (int u = 1 ; u <= n ; u ++) {
112
111
for (int w = u ; w <= n ; w ++) {
113
112
IRegEx <V > reg = table .get (u , w );
You can’t perform that action at this time.
0 commit comments