Revert "nutzen von getNumEdges()"

This reverts commit 27a7426bdea60521cc3b0f6b74d38b7c57bd5c8c.
use forward slashes in file name
Use a clever algoriths to count edges

It is forbidden to use getNumEdges()…