function sends back part of graph and interesting nodes

new function as well that get history