get_filter ('main','main') method="cutoff" options={"cutoff":3} 
write_subgraph ('main','main') output_filename='outpathfile'
