add one layout api

this is from the gephi open source community plugin