diff --git a/lib/fgraph.rb b/lib/fgraph.rb
index <HASH>..<HASH> 100644
--- a/lib/fgraph.rb
+++ b/lib/fgraph.rb
@@ -391,7 +391,7 @@ module FGraph
     #
     def get_id(id)
       return unless id
-      id = id['id'] if id.is_a?(Hash)
+      id = id['id'] || id[:id] if id.is_a?(Hash)
       id
     end
   end
Accept symbol as well. (Corresponding to usage in readme file.)