107 |
return false; |
return false; |
108 |
} |
} |
109 |
|
|
110 |
|
/** Special call for structure linked vocabulary to test if node is linked with node2. |
111 |
|
* @see STRUCTLINK |
112 |
|
*/ |
113 |
|
static public boolean isLinkedWith(Graph graph, Object node, Object node2) { |
114 |
|
Iterator it = graph.findN_11X_Iter(node, STRUCTLINK.linkedTo); |
115 |
|
if (it.hasNext() && node2 == it.next()) return true; |
116 |
|
it = graph.findN_X11_Iter(STRUCTLINK.linkedTo, node); |
117 |
|
if (it.hasNext() && node2 == it.next()) return true; |
118 |
|
return false; |
119 |
|
} |
120 |
|
|
121 |
} |
} |
122 |
|
|