Canonic labeling of graphs