Knowledge graph for agents: entity relationship mapping, graph traversal, inference reasoning, contradiction detection a