Collaborative Learning in General Graphs with Limited Memorization: Complexity, Learnability, and Reliability