81 |
Integer.toString(val))); |
Integer.toString(val))); |
82 |
} |
} |
83 |
|
|
84 |
|
/** Special call for structure linked vocabulary to test if node is linked. |
85 |
|
* @see STRUCTLINK |
86 |
|
*/ |
87 |
|
public boolean isLinked(Graph graph, Object node) { |
88 |
|
Iterator it = graph.findN_11X_Iter(node, STRUCTLINK.linkedTo); |
89 |
|
if (it.hasNext()) return true; |
90 |
|
it = graph.findN_X11_Iter(STRUCTLINK.linkedTo, node); |
91 |
|
if (it.hasNext()) return true; |
92 |
|
return false; |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
/** Split node to two nodes. Enfilade is splitted in ind, |
/** Split node to two nodes. Enfilade is splitted in ind, |
117 |
* i.e. (node, [foobar]) will be with ind 2 be splitted to |
* i.e. (node, [foobar]) will be with ind 2 be splitted to |
119 |
* be copied to split. |
* be copied to split. |
120 |
* |
* |
121 |
* @return the new node |
* @return the new node |
122 |
|
* @deprecated |
123 |
*/ |
*/ |
124 |
static public Object splitNode(Fen fen, Object node, int ind) { |
static public Object splitNode(Fen fen, Object node, int ind) { |
125 |
Object split = Nodes.N(); |
Object split = Nodes.N(); |