graph processing methods