Is it possible? I need to jump to a way from any edge. Way ID seems very convenient mechanism considering it's already generated in OSM. However I can't find anything yet. If you wonder why I need this, it's simple - a way can be used as a container of common properties for a set of edges. It eliminates need to duplicate information.
AllEdgesIterator ei = graph.getGraph().getAllEdges();
logger.info("Wring {} edges...", ei.getMaxId());
while (ei.next()) {
// TODO (ds): get way ID here
...
}