graph model: get connections and paths, not tested