public abstract class MutationStrategyBuilder<B extends MutationStrategyBuilder<B>>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
abstract oracle.pgx.common.mutations.MutationStrategy |
build()
Builds the
MutationStrategy with the chosen parameters. |
B |
dropEdgeProperties(java.util.Collection<EdgeProperty<?>> edgeProperties)
Set edge properties that will be dropped after the mutation.
|
B |
dropEdgeProperty(EdgeProperty<?> edgeProperty)
Set edge property that will be dropped after the mutation.
|
B |
dropVertexProperties(java.util.Collection<VertexProperty<?,?>> vertexProperties)
Set vertex properties that will be dropped after the mutation.
|
B |
dropVertexProperty(VertexProperty<?,?> vertexProperty)
Set vertex property that will be dropped after the mutation.
|
B |
setCopyMode(PgxGraph.Mode mode) |
B |
setKeptEdgeProperties(java.util.Collection<EdgeProperty<?>> propsToKeep)
Set edge properties that will be kept By default (without calling this) all edgeProperties will be kept.
|
B |
setKeptVertexProperties(java.util.Collection<VertexProperty<?,?>> propsToKeep)
Set vertex properties that will be kept By default (without calling this) all vertexProperties will be kept.
|
B |
setMultiEdges(PgxGraph.MultiEdges multiEdges) |
B |
setNewGraphName(java.lang.String newGraphName)
Set name of new graph name.
|
B |
setSelfEdges(PgxGraph.SelfEdges selfEdges) |
B |
setTrivialVertices(PgxGraph.TrivialVertices trivialVertices) |
public abstract oracle.pgx.common.mutations.MutationStrategy build() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
MutationStrategy
with the chosen parameters. Parameters that were not set, are instantiated with default values.java.util.concurrent.ExecutionException
java.lang.InterruptedException
public B dropEdgeProperties(java.util.Collection<EdgeProperty<?>> edgeProperties)
edgeProperties
-public B dropEdgeProperty(EdgeProperty<?> edgeProperty)
edgeProperty
-public B dropVertexProperties(java.util.Collection<VertexProperty<?,?>> vertexProperties)
vertexProperties
-public B dropVertexProperty(VertexProperty<?,?> vertexProperty)
vertexProperty
-public B setCopyMode(PgxGraph.Mode mode)
public B setKeptEdgeProperties(java.util.Collection<EdgeProperty<?>> propsToKeep)
propsToKeep
-public B setKeptVertexProperties(java.util.Collection<VertexProperty<?,?>> propsToKeep)
propsToKeep
-public B setMultiEdges(PgxGraph.MultiEdges multiEdges)
multiEdges
- defines if multi-edges should be kept in the result. Constants PgxGraph.MultiEdges.KEEP_MULTI_EDGES
or PgxGraph.MultiEdges.REMOVE_MULTI_EDGES
can be usedpublic B setNewGraphName(java.lang.String newGraphName)
newGraphName
-public B setSelfEdges(PgxGraph.SelfEdges selfEdges)
selfEdges
- defines if self-edges should be kept in the result. Constants PgxGraph.SelfEdges.KEEP_SELF_EDGES
or PgxGraph.SelfEdges.REMOVE_SELF_EDGES
can be used.public B setTrivialVertices(PgxGraph.TrivialVertices trivialVertices)
trivialVertices
- defines if isolated nodes should be kept in the result. Constants PgxGraph.TrivialVertices.KEEP_TRIVIAL_VERTICES
or PgxGraph.TrivialVertices.REMOVE_TRIVIAL_VERTICES
can be used