public interface MirrorTransformer extends Transformer
In the cloneWeight(boolean)
method, users can also specify whether to clone node
and edge weights. For non cloneable
weights a CloneNotSupportedException
will be thrown by
the virtual machine.
MirrorTransformation
Red (ssb) |
Red (shahrooz) |
Modifier and Type | Method and Description |
---|---|
void |
cloneWeight(boolean status)
Changes the status of the graph returned by the
mirror() method. |
Graph |
mirror()
Create a mirror of the graph associated with this analyzer with the
same runtime class.
|
Graph |
mirror(Graph graph,
boolean cloneWeights)
Return a mirror of this graph in the form of the argument graph type
(i.e., the run-time type of the returned graph is that of the
argument graph).
|
hasBackwardMapping, hasForwardMapping, originalVersionOf, transformedVersionOf
graph
void cloneWeight(boolean status)
mirror()
method.
If set to true, the weights will also be cloned in the next calls to the
mirror()
method.status
- If set to true, the weights will also be cloned.Graph mirror()
Graph mirror(Graph graph, boolean cloneWeights)
graph
- The type of the graph which the graph associated with
this analyzer is being mirrored to.cloneWeights
- If set true, the weights will also be cloned.