work in progress on matrix-based graph detector