Solving graph data issues using a layered architecture approach with applications to web spam detection