Implement connectivity
Forgot to commit states
Fix compilation issues
Restore typedefs
Finished connexity check