Application that detects whether given graph is linear using 4-sweep LBFS algorithm.