fix
[log] Move TreeToIntMap & etc. to impl package.
[log] Add GraphFlags