styleByPath

fun styleByPath(path: List<Int>, attributes: Map<String, String>)

Sets the attributes to the elements of the given path.