Update code examples to current C++ style. Change formatting slightly to use more columns. Rewrite secions to be more explicit and precise. Avoid cryptic / uncommon code in examples. Finding real edges in particular is never inlined, we just use the function for it.