unwrap

fun <T : Node> unwrap(collection: List<PropertyEdge<T>>, outgoing: Boolean = true): List<T>

Unwraps this property edge into a list of its target nodes.

Return

the list of target nodes

Parameters

collection

the collection of edges

outgoing

whether it is outgoing or not

the type of the edges