graph+sort