support swap used in memory graph
use constant for color
add .DS_Store to gitignore